﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MVVM.Core;
using ObjectModel.Excel; 

namespace ViewModels
{
	/// <summary>
	/// View Model for specifying a literal range
	/// </summary>
	public class LiteralRangeViewModel : ViewModelBase
	{
        private IOfflineRange mOfflineRange;

        public event EventHandler Show;

        public IOfflineRange OfflineRange { 
			get { return mOfflineRange; }
			set { mOfflineRange = value;
				ShowControl();
			}
		}

		public  LiteralRangeViewModel() {
			
		}

		private void ShowControl() {
			if(Show != null)
				Show(this, new EventArgs()); // Perhaps implement this with ICommand - can't seem to find it - supposed to be in PresentationCore.dll?
		}
	}
}
